//
//  DJHomeNotiseView.m
//  DualJoy
//
//  Created by lijunge on 2019/11/18.
//  Copyright © 2019 lijunge. All rights reserved.
//

#import "DJHomeNotiseView.h"
#import <Masonry/Masonry.h>
@interface DJHomeNotiseView ()

@property (nonatomic, strong) UILabel *notiseLabel;

@end

@implementation DJHomeNotiseView

- (instancetype)initWithFrame:(CGRect)frame {
    
    if (self = [super initWithFrame:frame]) {
        
        self.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    [self addSubview:self.notiseLabel];
    [self.notiseLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self);
    }];
}

- (UILabel *)notiseLabel {
    
    if (_notiseLabel == nil) {
        UILabel *statusLabel = [[UILabel alloc] init];
        statusLabel.text = @"我也不知道这个地方该写点啥 就知道可能要提示你了。。。。。";
        statusLabel.font = [UIFont boldSystemFontOfSize:13];
        statusLabel.textAlignment = NSTextAlignmentCenter;
        statusLabel.textColor = [UIColor redColor];
        statusLabel.numberOfLines = 0;
        statusLabel.lineBreakMode = NSLineBreakByWordWrapping;
        _notiseLabel = statusLabel;
    }
    return _notiseLabel;
}


@end
